{include file="header"}
<div class="x-body layui-form">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so layui-form-pane">
          <input class="layui-input" placeholder="用户名|手机号|id" value="{:get('ks','')}" name="ks">
          <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="iconfont">&#xe6ac;</i>搜索</button>
          <a class="layui-btn" onclick="x_admin_show('添加','{:url('admin/com/member_add')}')">添加</a>
        </form>
      </div>
      <div  style="overflow: auto;">
        <table class="layui-table" style="min-width: 1000px;">
        <colgroup>
          <col width="200">
          <col>
        </colgroup>
        <thead>
          <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>手机号码</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr></thead>
        <tbody>
		{volist name="html" id="vo"}
		<!--内容-->
          <tr>
            <td>{$vo.userid}</td>
            <td><a href="{:url('index/index/uid',array('id'=>$vo.userid))}" target="_blank">{$vo.username}</a>  </td>
            <td>
            	{if condition="socha(user('tid'),'99') eq '1'"}
    					{$vo.phone}
    					{else/}
    					并无权限查看
    					{/if}
            </td>
			<td>
			<input type="checkbox" lay-skin="switch" url="{:url("admin/api/uindex")}?id={$vo.userid}&model=member&or=open&i=userid" lay-submit lay-filter="index"  lay-text="正常|正常"  {if condition="$vo['open'] eq 1"}checked{/if}>
			</td>
			<td>{$vo.regtime|times}</td>
            <td class="td-manage">
			  <a class="layui-btn layui-btn-sm" onclick="x_admin_show('编辑','{:url('admin/com/member_add')}?id={$vo.userid}')">编辑</a>
              <a class="layui-btn layui-btn-sm layui-btn-danger del_t" url="{:url('admin/api/catedelete')}?model=member&id={$vo.userid}&i=userid" name="确定要删除这条记录吗？"><i class="layui-icon"></i>删除</a>
            </td>
          </tr>
		  {/volist}
        </tbody>
      </table>
      </div>
      <div class="page">
         {$html->render()}
      </div>

    </div>
  {include file="footer"}